﻿namespace BarrageGameAssistant.Core.Enums
{
    /// <summary>
    /// 匹配方式
    /// </summary>
    public enum IdentifyMatchType
    {
        /// <summary>
        /// 包含匹配
        /// </summary>
        Contains = 0,
        /// <summary>
        /// 相似度匹配
        /// </summary>
        Similarity = 1,
        /// <summary>
        /// Ocr识别匹配
        /// </summary>
        OCR
    }

    public static class IdentifyMatchTypeExtension
    {
        public static string ToDesc(this IdentifyMatchType identifyMatchType)
        {
            if (identifyMatchType == IdentifyMatchType.Similarity)
                return "相似度匹配";
            else if (identifyMatchType == IdentifyMatchType.OCR)
                return "文字识别匹配";
            else
                return "包含匹配";
        }
    }
}
